package de.ff7rl.core.battle;

import de.ff7rl.core.PointPool;

public class BattleParticipant {

  private final PointPool healthPoints = new PointPool(0);
  private final PointPool magicPoints = new PointPool(0);
  private BattlePosition battlePosition = BattlePosition.FRONT;
  private String name;

  public BattlePosition getBattlePosition() {
    return battlePosition;
  }

  public PointPool getHealthPoints() {
    return healthPoints;
  }

  public PointPool getMagicPoints() {
    return magicPoints;
  }

  public String getName() {
    return name;
  }

  public boolean isDead() {
    return healthPoints.isEmpty();
  }

  public void setBattlePosition(final BattlePosition theBattlePosition) {
    battlePosition = theBattlePosition;
  }

  public void setName(final String theName) {
    name = theName;
  }

}
